import com.glsc.ngateway.common.api.ldap.dto.OaParamDto;
import org.springframework.util.DigestUtils;

public class testMD5 {

    public static void main(String[] args) {
        OaParamDto userDto = new OaParamDto();
        userDto.setUserName("weizt");
        userDto.setTimeSign("1666608687");
        userDto.setVaildCode("1111111");

        String userString = "oazypt"+userDto.getUserName()+userDto.getTimeSign();
        String validCode = DigestUtils.md5DigestAsHex(userString.getBytes());
        System.out.println(validCode);
    }

}
